import request from '@/utils/request.js';


export function getList(data) {
  return request({
    url: `/sys_account/list`,
    method: 'post',
    data,
  });
}

export function getItem(id) {
  return request({
    url: `/sys_account/getIem`,
    method: 'get',
    params: {
      id,
    },
  });
}

export function update(data) {
  return request({
    url: `/sys_account/update`,
    method: 'post',
    data,
  });
}

export function add(data) {
  return request({
    url: `/sys_account/add`,
    method: 'post',
    data,
  });
}


export function del(id) {
  return request({
    url: `/sys_account/delbyid`,
    method: 'get',
    params: { id },
  });
}

// 查询日志
export function getLogs(data) {
  return request({
    url: '/sys_account/getlogs',
    method: 'post',
    data: data,
  });
}





